package com.ajmd.onlineexam.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

/**
 * @author ajmd
 * @since 2023/3/27 16:23
 */
@TableName("e_test_paper")
@Data
@ToString
@AllArgsConstructor
@NoArgsConstructor
//@Component
public class TestPaperPO implements Serializable {
    //唯一标识
    private String id;
    //试卷名
    private String testPaperName;
    //所属分类ID
    private String belongFolderId;
    //所属分类全ID
    private String belongFolderFullId;
    //试卷类型：0固定、1随机
    private Integer testPaperType;
    //公开范围
    private Integer publicRange;
    //总题数
    private Integer totalCount;
    //单选数
    private Integer radioCount;
    //多选数
    private Integer multipleChoiceCount;
    //判断数
    private Integer trueOrFalseCount;
    //填空数
    private Integer fillCount;
    //问答数
    private Integer questionCount;
    //试卷满分
    private BigDecimal maxScore;
    //创建人
    private String createPerson;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp createTime;
    //修改时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Timestamp updateTime;
}
